import java.util.Scanner;

class Circle {
    double x;
    double y;
    double r;

    // 构造方法
    Circle(double x, double y, double r) {
        this.x = x;
        this.y = y;
        this.r = r;
    }

    // 设置圆心坐标的方法
    public void setX(double x) {
        this.x = x;
    }

    public void setY(double y) {
        this.y = y;
    }

    // 获取圆心坐标的方法
    public double getX() {
        return x;
    }

    public double getY() {
        return y;
    }

    // 设置半径的方法
    public void setR(double r) {
        this.r = r;
    }

    // 获取半径的方法
    public double getR() {
        return r;
    }

    // 计算圆的面积的方法
    public double area() {
        return Math.PI * r * r;
    }

    public void show() {
        System.out.println("x 的值：" + x );
        System.out.println("y 的值：" + y );
        System.out.println("r 的值：" + r);
    }
}

class Test {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        System.out.print("请输入圆的圆心横坐标：");
        double x = scanner.nextDouble();

        System.out.print("请输入圆的圆心纵坐标：");
        double y = scanner.nextDouble();

        System.out.print("请输入圆的半径：");
        double r = scanner.nextDouble();

        Circle circle = new Circle(x, y, r);

        circle.show();

        System.out.println("s 的值：" + circle.area());


    }
}